package io.guanghe.common.exception;

import lombok.Data;

/**
 * 自定义异常
 */
@Data
public class BizException extends RuntimeException{

    private ExceptionCodeEnum exceptionCodeEnum;

    public BizException(ExceptionCodeEnum exceptionCodeEnum){
        super();
        this.exceptionCodeEnum = exceptionCodeEnum;
    }

    public BizException(ExceptionCodeEnum exceptionCodeEnum, String msg){
        super(msg);
        this.exceptionCodeEnum = exceptionCodeEnum;
    }
}
